package com.temple.model.remark.Vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.comon.core.domain.BaseEntity;
import com.temple.model.remark.Remark;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Created with Intellij IDEA.
 * Description;
 * User:TQ02
 * Data:2024-10-17
 * Time:17:07
 * Text：
 */
@Data
public class RemarkVO  {

    @Schema(description = "评论ID")
    private Integer id;
    @Schema(description = "评论人ID")
    private Integer uId;
    private String comment;
    private LocalDateTime createTime;
    private int parentId;
    public RemarkVO(Remark remark) {
        this.id = remark.getAId();
        this.uId = remark.getUId();
        this.comment = remark.getComment();
        this.createTime = remark.getCreateTime();
        this.parentId = remark.getParentId();
    }
}
